package various;

//import java.io.BufferedWriter;
//import java.io.FileNotFoundException;
//import java.io.FileOutputStream;
//import java.io.OutputStreamWriter;
//import java.io.UnsupportedEncodingException;
//import java.io.Writer;
//import java.util.Iterator;
//import no.ntnu.idi.deid.patternmatching.search.dictionary.medicalcodes.ATC_Codes;
//
//import com.hp.hpl.jena.ontology.OntClass;
//import com.hp.hpl.jena.ontology.OntModel;
//import com.hp.hpl.jena.ontology.OntModelSpec;
//import com.hp.hpl.jena.rdf.model.ModelFactory;
//
////Husk å implementere alle de nødvendige jenaBiblotekene
//
//public class Jena {
//
//	private Jena() {
//
//	}
//	
//	public static void genereateDocument(String inputFilename, String outputFilename, String ontologyFormat) {
//		OntModel ontologyModel = ModelFactory.createOntologyModel(
//				OntModelSpec.OWL_MEM, null);
//		ontologyModel.read("file:"+inputFilename);
//		@SuppressWarnings( "rawtypes")
//		Iterator i = ontologyModel.listClasses();
//		while (i.hasNext()) {
//			OntClass ontologyClass = (OntClass) i.next();
//			if (ontologyClass.getLabel(null) != null) {
//				String norwegianLabel = ATC_Codes.getNameByCode(ontologyClass.getLocalName()); //denne metoden er ikke implementert! Spørr Singh
//				if(norwegianLabel != null){
//				ontologyClass.addLabel(norwegianLabel,"no");
//				}
//			}
//		}
//
//		Writer writer = null;
//		try {
//			writer = new BufferedWriter(new OutputStreamWriter(
//					new FileOutputStream(outputFilename), "utf-8"));
//		} catch (UnsupportedEncodingException | FileNotFoundException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
//		ontologyModel.write(writer, ontologyFormat);
//		ontologyModel.close();
//	}
//	
//	public static void main(String[] args) {
//		genereateDocument("ordlister/MultiTerm/ATC/atc.owl", "atc_extended.ttl", "TURTLE");
//	}

//}
